Repository navigation
[3.0] Misc fixes - #9302
[3.0] Misc fixes#9302Sesquipedalian merged 23 commits into
Conversation
cbac018 to
a73718e
Compare
a73718e to
dd318d6
Compare
|
Okay, I think I am done messing with this PR. @sbulen, would you care to test whether it solves the problem of not being logged after the upgrader exits? |
8be3518 to
1f2c789
Compare
2.1 => 3.0
|
|
Well, phooey. I must have broken something in my tinkering after I first pushed. I suppose that's what I get for trying to code while sleepy. |
1f2c789 to
b868cf2
Compare
|
2.1 => 3.0Getting a different WSOD:
PHP error log reflects the above. MySQL & Apache logs clear. Upgrade.log:
|
b868cf2 to
a5aef7c
Compare
|
That should be fixed now. The cause was just a silly mistake on my part. If you could test again, @sbulen, that would be lovely! |
|
Note this branch currently has merge conflicts. |
Signed-off-by: Jon Stovell <jonstovell@gmail.com> # Conflicts: # Sources/Maintenance/Tools/Install.php
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Can be used to allow us to check a password without automatically updating it. This matters for the upgrader, where we don't want to write to the members table before it is ready to receive new data. Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Is now idempotent (meaning, running the step again won't change anything) and can handle every possible format that the value might have been in before. Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
d8a35f3 to
c385188
Compare
|
Fixed now, @sbulen. Ready for a retest whenever you are able. |
|
I went over this while working on upgrade hardening, because the What I verifiedMerged into current
The browser run is the one that mattered, since that is what this PR is mostly about: login → upgrade options → 245 migration substeps → 72 utf8mb4 substeps → 2 cleanup substeps → finalize → redirect to I also chased three things that looked like problems and turned out not to be, in case they save anyone else the trip: the guest dataset dropping from 1. A change to password handling that is not in the descriptionThis is the only one I would want a second opinion on before it merges. In the old // SMF 1.1 / 2.0 — decoded
$other_passwords[] = sha1(strtolower($this->member->username) . Utils::htmlspecialcharsDecode($_POST['passwrd']));
// phpBB3, vBulletin, MyBB, PunBB, … — raw
$other_passwords[] = md5($_POST['passwrd']);
$other_passwords[] = crypt($_POST['passwrd'], substr($_POST['passwrd'], 0, 2));
$other_passwords[] = hash('sha256', $_POST['passwrd']);
$other_passwords[] = $_POST['passwrd'];
I think the new behaviour is the correct one — the source software hashed the literal password, so 2.
|
…orums Signed-off-by: Jon Stovell <jonstovell@gmail.com>
That was an unintentional change, although I do agree that the new behaviour is correct. However, purely for the sake of backward compatibility, I will add some code to try variants of |
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
|
Maintenance::$contextwith just plain oldUtils::$context. Upon closer inspection, I realized that there was neither any need nor any benefit to having a separate version of$context; it just caused headaches when using other code, such asSecurityToken::create(), that is already designed to work withUtils::$context.